package com.winit.service.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.winit.core.service.ServiceC;
import com.winit.core.service.ServiceD;

@Service(version = "${serviceC.service.version}")
public class ServiceCImpl implements ServiceC {

    
    @Reference(check=true,version="${serviceD.service.version}")
    private ServiceD serviceD;
    
    public String sayHello(String s) {
        StringBuilder sb = new StringBuilder();
        for(int i = 0;i<10;i++) {
            sb.append(serviceD.sayHello());
        }
        return "hello form Service C " + s+ sb.toString();
    }
    
}

